import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCanvasStore = defineStore('canvas', () => {
  const canvasDom = ref()
  const setCanvasDom = (dom: any) => {
    canvasDom.value = dom
  }
  const isShow = ref(true)
  const setshow = (show: any) => {
    isShow.value = show
  }
  const Width = ref(0)
  const Height = ref(0)
  return {
    canvasDom,
    setCanvasDom,
    isShow,
    setshow,
    Width,
    Height
  }
})
